#include "regex.h"

using std::string;
using std::cout;
using std::endl;
using MyRegex::Regex;

int
main(int argc, char **argv)
{
	if (argc < 3) {
		cout << "my_regex <regex> <string>" << endl;

		return 1;
	}

	string regexString(argv[1]), s(argv[2]);

	Regex regex(regexString);
	if (regex.recognize(s)) {
		cout << "true" << endl;
	} else {
		cout << "false" << endl;
	}

	return 0;
}
